package com.nw.dao;

import com.nw.entity.Order;
import com.nw.entity.OrderItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface OrderItemDao {
    void insertOrderItem(OrderItem orderItems);

    /**
     * 添加订单
     * */
    void insertOrder(Order order);
    /**
    * 查询订单
    * */
    List<Order> queryOrderByReceiver(String receiver);
    /**
     * 修改订单状态
     * */
    void updateOrderStatus(Order order);
    /**
     * 仅供管理员查询所有订单!!!
     * */
    List<Order> queryAllOrder();
}
